package com.ogawa.projectcommon.dialog

import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.View
import android.view.Window
import com.ogawa.projectcommon.R
import kotlinx.android.synthetic.main.dialog_diy_share.*

class DiyShareDialog(context: Context) : Dialog(context) {

    init {
        window?.requestFeature(Window.FEATURE_NO_TITLE)
        window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
        setContentView(R.layout.dialog_diy_share)
        setCancelable(false)
        tv_cancel.setOnClickListener { dismiss() }
    }

    fun setOnConfirmClickListener(listener: View.OnClickListener) {
        tv_confirm.setOnClickListener(listener)
    }
}